-- GENERATED SPELL FOR [Saltspittle Oracle] --


function spell0_3742(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(913,pUnit)
pUnit:RegisterEvent('Sorts_3742', 3000, 1)
end

function spell1_3742(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(2608,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3742', 0, 1)
end

function Sorts_3742(pUnit, Event)
local choix_sorts_3742 = math.random(0, 1)
if choix_sorts_3742 == 0 then
pUnit:RegisterEvent('spell0_3742', 1, 1)
end
if choix_sorts_3742 == 1 then
pUnit:RegisterEvent('spell1_3742', 1, 1)
end
end

function mob3742_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3742', math.random(1500, 3000), 1)
end

function mob3742_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3742_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3742_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3742, 1, 'mob3742_Action')
RegisterUnitEvent(3742, 2, 'mob3742_Leave')
RegisterUnitEvent(3742, 3, 'mob3742_Kill')
RegisterUnitEvent(3742, 4, 'mob3742_Die')
